import http from '@/utils/http'


export function roleMenuTreeApi(data) {
  return http.request({
    url: `/api/system/tree`,
    method: 'POST',
    data,
  })
}

export function roleMenuListApi(data) {
  return http.request({
    url: `/api/system/menuList`,
    method: 'POST',
    data,
  })
}

export function roleMenuUpsertApi(data) {
  return http.request({
    url: `/api/system/upsertRoleMenu`,
    method: 'POST',
    data,
  })
}

export function userRoleUpsertApi(data) {
  return http.request({
    url: `/api/system/upsertUserRole`,
    method: 'POST',
    data,
  })
}